/**
 * 
 */
package com.primestone.cim.util.exceptions;

import com.primestone.cim.util.StringUtil;

/**
 * @author cesar.mateus
 *
 */
public class ServiceException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8418995757763774814L;
	
	/**
	 * 
	 * @param description
	 * @param cause
	 * @param message
	 */
	public ServiceException(ExceptionMessageEnum description, Throwable e) {
		super(StringUtil.composeMessageServiceException(description.getMessage(), e));
	}
	
	/**
	 * 
	 * @param description
	 */
	public ServiceException(String description) {
		super(description);
	}
	
	/**
	 * @param description
	 */
	public ServiceException(ExceptionMessageEnum description) {
		super(description.getMessage());
	}

}
